package com.xgll.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xgll.modules.sys.dao.ViewsHistoryDao;
import com.xgll.modules.sys.entity.ViewsHistoryEntity;
import com.xgll.modules.sys.service.ViewsHistoryService;



@Service("viewsHistoryService")
public class ViewsHistoryServiceImpl implements ViewsHistoryService {
	@Autowired
	private ViewsHistoryDao viewsHistoryDao;
	
	@Override
	public ViewsHistoryEntity queryObject(Integer id){
		return viewsHistoryDao.queryObject(id);
	}
	
	@Override
	public List<ViewsHistoryEntity> queryList(Map<String, Object> map){
		return viewsHistoryDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return viewsHistoryDao.queryTotal(map);
	}
	
	@Override
	public void save(ViewsHistoryEntity viewsHistory){
		viewsHistoryDao.save(viewsHistory);
	}
	
	@Override
	public void update(ViewsHistoryEntity viewsHistory){
		viewsHistoryDao.update(viewsHistory);
	}
	
	@Override
	public void delete(Integer id){
		viewsHistoryDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		viewsHistoryDao.deleteBatch(ids);
	}
	
}
